<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/taglib.jsp" %>
<div class="resume-title">
         项目经验
</div>

<div class="resume-project-exp">
<div id="NTGUID__b">
<c:if test="${resume.projectInfo!=null }">
<c:forEach var="project" items="${resume.projectInfo }">
<div class="resume-complete " id="projectshow">    
      <dl>
        <dt class="clearfix">
          <strong title="1">${project.projectName }</strong>（${project.startTime}/${project.endTime}）
        </dt>
        <dd>
          <table>
            <tbody>                         
              <tr>
                <th>所在公司：</th>
                <td>${project.companyName }</td>
              </tr>                       
              <tr>
                <th>项目描述：</th>
                <td>${project.projectDescription }</td>
              </tr>              
              <tr>
                <th>项目职责：</th>
                <td>${project.dutyDescription }</td>
              </tr>           
              <tr>
                <th>项目业绩：</th>
                <td>${project.achievement }</td>
              </tr>             
            </tbody>
          </table>
        </dd>
      </dl>     
</div>
</c:forEach>
</c:if>

<div class="resume-edit resume-add-fieldset " id="projectexp" style="display:none">
	<c:if test="${resume.projectInfo==null || resume.projectInfo.size()==0 }">
    <form:form action="saveproject" modelAttribute="project" method="post">   
    <input type="hidden" value="" name="id"> 
     <input type="hidden" value="${resume.id }" name="resumeId"> 
      <fieldset class="form-content">
        <table>
          <tbody>
            <tr>
              <th>项目名称</th>
              <td colspan="3"><input type="text" class="text" maxlength="60" name="projectName" value="" ></td>
            </tr> 
			<tr>
              <th>所在公司</th>
              <td colspan="3"><input type="text" class="text" maxlength="60" name="companyName" value="" ></td>
            </tr>            
            <tr>
              <th>开始时间</th>
              <td width="200"><input type="text" class="text text-small" name="startTime" value="" ></td>
              <th>结束时间</th>
              <td width="237"><input type="text" class="text text-small" name="endTime" value="" ></td>
            </tr>                     
            <tr>
              <th>项目描述</th>
              <td colspan="3">
                <textarea class="textarea span15" rows="6" name="projectDescription" placeholder="请详细描述项目内容，填写文字限1000字以内" maxlength="1000"></textarea>
                <p class="muted text-right">你还可以输入 <span class="c3" >1000</span> 字</p>
              </td>
            </tr>
            <tr>
              <th>项目职责</th>
              <td colspan="3">
                <textarea class="textarea span15" rows="6" name="dutyDescription" placeholder="请详细描述您的职责范围及工作任务，填写文字限1000字以内" maxlength="1000"></textarea>
                <p class="muted text-right">你还可以输入 <span class="c3" >1000</span> 字</p>
              </td>
            </tr>
            <tr>
              <th>项目业绩</th>
              <td colspan="3">
                <textarea class="textarea span15" rows="6" name="achievement" placeholder="请详细描述您在项目中取得的业绩，填写文字限1000字以内"  maxlength="1000"></textarea>
                <p class="muted text-right">你还可以输入 <span class="c3" >1000</span> 字</p>
              </td>
            </tr>
          </tbody>
        </table>
      </fieldset>
      <fieldset class="text-center btns">
        <input type="submit" class="btn btn-primary" name="" value="保 存">
        <a href="javascript:;" onclick="hide('projectexp','projectshow')">取消</a>
      </fieldset>    
    </form:form>
	</c:if>
	
	<c:forEach var="project" items="${resume.projectInfo }">
    <form:form action="saveproject" modelAttribute="project" method="post">   
    <input type="hidden" value="${project.id }" name="id"> 
    <input type="hidden" value="${resume.id }" name="resumeId"> 
      <fieldset class="form-content">
        <table>
          <tbody>
            <tr>
              <th>项目名称</th>
              <td colspan="3"><input type="text" class="text" maxlength="60" name="projectName" value="${project.projectName }" ></td>
            </tr> 
			<tr>
              <th>所在公司</th>
              <td colspan="3"><input type="text" class="text" maxlength="60" name="companyName" value="${project.companyName }" ></td>
            </tr>            
            <tr>
              <th>开始时间</th>
              <td width="200"><input type="text" class="text text-small" name="startTime" value="${project.startTime }" ></td>
              <th>结束时间</th>
              <td width="237"><input type="text" class="text text-small" name="endTime" value="${project.endTime }" ></td>
            </tr>                     
            <tr>
              <th>项目描述</th>
              <td colspan="3">
                <textarea class="textarea span15" rows="6" name="projectDescription" placeholder="请详细描述项目内容，填写文字限1000字以内" maxlength="1000">${project.projectDescription }</textarea>
                <p class="muted text-right">你还可以输入 <span class="c3" >1000</span> 字</p>
              </td>
            </tr>
            <tr>
              <th>项目职责</th>
              <td colspan="3">
                <textarea class="textarea span15" rows="6" name="dutyDescription" placeholder="请详细描述您的职责范围及工作任务，填写文字限1000字以内" maxlength="1000">${project.dutyDescription }</textarea>
                <p class="muted text-right">你还可以输入 <span class="c3" >1000</span> 字</p>
              </td>
            </tr>
            <tr>
              <th>项目业绩</th>
              <td colspan="3">
                <textarea class="textarea span15" rows="6" name="achievement" placeholder="请详细描述您在项目中取得的业绩，填写文字限1000字以内"  maxlength="1000">${project.achievement }</textarea>
                <p class="muted text-right">你还可以输入 <span class="c3" >1000</span> 字</p>
              </td>
            </tr>
          </tbody>
        </table>
      </fieldset>
      <fieldset class="text-center btns">
        <input type="submit" class="btn btn-primary" name="" value="保 存">
        <a href="javascript:;" onclick="hide('projectexp','projectshow')">取消</a>
      </fieldset>    
    </form:form>
    </c:forEach>
  </div>
</div>
</div>

<div id="NTGUID__9">
	<div class="resume-add" id="projectadd">
	   <a href="javascript:;" onclick="show('projectexp','projectshow')"><em> 修改</em>项目经历</a>
	</div>
</div>

